package com.lesso.lpq.sunflower.infra.assembler;

import com.lesso.lpq.sunflower.model.AttendanceRule;
import com.lesso.lpq.sunflower.pojo.dto.AttendanceRuleDTO;
import com.lesso.lpq.sunflower.pojo.vo.AttendanceRuleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName : AttendanceRuleAssembler
 * @Description :
 * @Author : 罗培棋
 * @Date: 2025-07-05 17:19
 */
@Mapper
public interface AttendanceRuleAssembler {
    AttendanceRuleAssembler INSTANCE = Mappers.getMapper(AttendanceRuleAssembler.class);

    AttendanceRule dtoToEntity(AttendanceRuleDTO dto);

    AttendanceRuleVO entityToVO(AttendanceRule attendanceRule);

    List<AttendanceRuleVO> entityListToVOList(List<AttendanceRule> attendanceRules);
}
